Definitely need some tests for open sourcing, @javascript experts probably know the best way to go about this.