Change css selector to allow for internationalisation. Change comments
to make them fit the code.
Change post css selector to allow for internationalisation.
Make javascript work with internationalisation

Replace "input[value=" sections with classes to ensure that the code
works in all languages
Remove '$' from the '$form" variable name

$ has a special meaning in the template and having it in front of the
variable name is confusing.