adding js for rails 4 and reverting to ninefold for deploy