Fixed jquery error

Solved by moved jquery loading to the top