Move the s3_upload javascript function to head, because Chrome was complaining about the function being missing in its original position.
Put lodash.min.js as a local static file.