Fixed issues with compile-js.rb