placed js funcs w/in the doc-ready func