Strict validation on Javascript models