Fix Makefile dependencies for javascript driver (#470)
Merge review 390 by @tryneus (Close #470)