added onlyNumber in directive.js