v4.0.1 script changes

jQuery 1.11 regression, script improvements