Remove empty helpers
Search as you type filter
Use javascript_tag instead of <script>. Also use HEREDOCs for syntax highlighting.