Compile JavaScript