added external js and query