updated browse javascript for charts