cleaning up jquery issues