Moved JS to a separate file, since jQuery's dollar signs confuse the template parser