Add index.js for Rails asset pipeline