Update Makefile for JS version