Fixed JS not compiling in build