javascript call back into the view