Fixing js / query load issue