added ejs to gemfile
refactored highchart js for better organization