Add js linting.

Replaces Rakefile with Makefile.

Fixes some js style issues.