Numericals On Function In Javascript