Fixed small bug during compiling of JS