Adding beginning of JS library
Finishing touches for JS gen. Now it should be at least as far as C.