Fix wrong window load javascript declaration