removed comment and unused code:
added notes
added js and submit button