Move jQuery check after window check

* Use window reference for jQuery check
* Avoid checking undefined reference in strict js mode
* Tweak error message
Fix present jquery built int

* Needed to check length and existence
Check overflow for sizeless visibility check

* Size should only indicate hidden if overflow is hidden
Add test files for core/jquery basic functionality