Refactored small issues in the main generator script
Added the missing use strict declaration in the javascript preprocessor. This fixes #8