This is working validation code.  I will attempt to move it to a separate
js file next.
Upgraded the compiler version to Java 7.