Better rails integration and unescaped javascript