Fixed javascript rendering problems
- form selector using the wrong id
- comma was added after messages when not needed