Basic attempt on mimicing input[type=number] functionality