amd wrapper for knockout validation or require.js