Add model.js script generation

@raymondfeng @bajtos please review
I'm all for that, but I don't want to include the JSHint comment in the output code. If we can disable it just for the smoke end to end test I'd be happy.