updated jquey and error pages