remove unused function
check jQuery before extending it
use ember polyfill not jQuery
check document before shy test