Updated makefile to add tests. Updated jade and js files to calculate classes in the template instead of at viewtime in the browser.