fixed error if jquery isn't present