added scriptApp.js and precompiled in application.rb, fixing reload bug