Some helper methods to perform standard JS library tasks from js.erb without having to write actual javascript