Added document.ready call to load script when browser starts