make Makefile more better
add package.json for easily installing build dependencies
add beforeunload event to make sure you dont destroy all progress/setup