Add javascript runtime to Gemfile and improve deploy configurations