Fix issues #50 move jquery js into head for better reusability