move js formatter to frontend repo, enable photo caching