Added 'Image' and '$' to jsLint globals definitions.
Added missing semicolons. Fix style.removeFromInsideElement.
Fixed missing semicolons and redeclared variables.
Merge branch 't/11081' into major