Updates for javascript and rspec