Try to convert generator.js
Rename `src` to `lib`
Merge pull request #15 from d10/js

Updates