fixed jquery bug and added google analytics