removed bulk of jquer and flot code