refactored chart javascript into separate js file
removed log