Added doc.ready to js

Should have done that before...