Makefile supports json and js properly