fixes jquery is undefined error