Adding AUTO to generated JS file name; fixing syntax error.