Create separate JS for homepage and add to initializer file in config so that Rails recognizes it.