Javascript string extender function, for password salting, hashing.