update javascript order, so jquery is available on the page