-- Update with changes to emscharts
-- Consolidated javascript in options.js