Bug fixes and update jQuery from 1.11 to 1.8.3