Removed document.ready since script tags are at bottom of body