Added JavaScript function call handling to browser ** not tested **