Fixed reload of javascript