compatibility with firefox

It seems that in Mozilla Firefox, a Float32Array should have index as an integer.
So even though Chrome, IE, Safari and Opera accept strings/other objects as index of the "map" variable, hereby replacing the map Float32Array with generic array so as to make the code compatible with Mozilla Firefox.
Merge pull request #15 from TejasBondre/master

compatibility with firefox