Optimized the validation module in common.js

- Changed namespace from Settings to Validation
- Removed dependency on jQuery
- Refactored functions to be pure JS
- Added greaterThan and lessThan public functions