use document.ready, not window.load for initializing js