Switching from Ruby to HTML5