Javascript load optimization

Added .js to bottom of page and attribute defer