Going ahead refactoring js
fix js context (this) on validatino