Initial implementation of JavaScript const generation
Generalize packaged JS generation