Fixed main.js so that it runs properly from the command line and bumped version