JS/Makefile wrangling