Enables Javascript error validation for poltergeist
Fix Javascript error on dashboard
close #354
Merge pull request #367 from ChrisBr/fix_js_error

Enables poltergeist and fixes js error on dashboard