Move .js files to their own directory

Review URL: https://codereview.chromium.org/677133002