jQuery moved to footer