moved barGraph code into its own javascript file. changed main layout to use haml instead of erb. created a layout piece called page_js, where we can place inline javascript.