Update app/assets/javascripts/newplan.js
Fix code (refactoring)
Merge branch 'fix_code'
Merge remote-tracking branch 'origin/master'