Jquery script moved to the top