Added momentjs dependency.
Added preliminary front-end validation code.