Split JS source up into multiple files. Update Makefile.