Fixing javascript string problem, and delaying drawying until javascript draws.