Fixes #11, added a better boilerplate javascript