Compiler: more checks with external javascript