Added JS validation for year field and fix field behaviour.
Add semicolon.
Add validation for year number of digits.
Merge pull request #5882 from openscholar/5816-1

Added JS validation for year field and fix JS behaviour.