Fix compiling of js