@metawaa Javscript code should not be added inside the html file, it should be inside app/assets/javascripts