Makefile: fix path.js generation
Implement basic require()