Working version of bug.js file with corresponding changes on the bug/create/create.html.tmpl file