making js compatible

- changed the makefile