Fix javascript compiling