Broke out javascript

Moved body.onload to jquery