Updated to support strict validation

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