JavaScript mal fixes and Makefile improvements

Some improvements here:
* Fix an issue where a nonexistent `.mal_history` file causes `node` to throw an exception due to no file existing.
* JavaScript `Makefile` automatically installs node modules if the node_module directory doesn't exist.