Extract JS code for graph into separate file
Extract style tag into seperate stylesheet