remove location javascript. use binding