added javascript into dashboard