fix bug for file with no constructor
remove validation for js file
do not enable generate actions on non-js files
fix Null pointer exception when you override on empty file