modify javascript for instance