Edited window-js to use query to bind the event handler instead of native js