Updated to support strict validation

Added "use strict"
Declared percent variable
Added missing ; terminators.

Closes #37