Put score chart JS code in its own file