fixes #27

Please see #28 for more details. This is not safe to merge until the compiled js is added along with some tests.
If this is still open tomorrow, I'll take care of it once I sort out a grunt version conflict.