Removed bugs / enhanced code
Removed bugs / enhanced code

1- Bug fixed: When `loop === false`, the thing loops in callbacks forever even if nothing is printed, now its fixed and exits when done

2- Code enhancement / bug fix:
Seems that the "inline-delay" functionality was loosely implemented, so if you type "Hello ^World" the word "World" would disappear, also there was no type checking for the digits what so ever, and there was no way to print the '^' char. And the boundary had to be a space .. so basically "Hello ^1000World" will not cause anything but the deletion of "^1000World" 

Now its fixed, print ^ using ^^, no need for space boundry " ", if no digits are found after the '^' and no '^^', the '^' char is totally ignored

3- Changed id='typed-cursor' to class='typed-cursor' to allow for multiple "typed" entities. (id was so restrictive)

4- Added "preStringTyped" function which gets called before a string is printed, takes the self.arrayPos as an argument

5- Modified "onStringTyped" to take self.arrayPos as an argument too

6- Add a "start" and "stop" functions

6- Simplified conditions for looping, also removed the very ambiguous this.stopArray which is conditionally set at initialization, used self.strings.length for more clear code. Also removed this.string which always points to first string

7- "callback" now gets called after all strings are displayed, even if it is in loop (not sure though if that was the intended functionality, but it makes more sense to me now than before). functionality can be restored by adding if(self.loop === false) before it gets called.

8- Suggestions: rename "preStringTyped" to "before" and "onStringTyped" to "after"
gdeguglielmo/typed.js,Bilyachenko/typed.js,cgvarela/typed.js,zstao/typed.js,cgvarela/typed.js,taylorfxnharris/typed.js,gdeguglielmo/typed.js,output/typed.js,emoreno619/typed.js,billybonz1/typed.js,loki315zx/typed.js,NimbleNotes/typed.js,d-salas/typed.js,itsboit/typed.js,Arthurjason/typed.js,kkcoms/typed,Arthurjason/typed.js,tianhengzhou/typed.js,nsina/typed.js,billybonz1/typed.js,mywaystar/typed.js,itsboit/typed.js,loki315zx/typed.js,output/typed.js,finetype/typed.js,zstao/typed.js,NimbleNotes/typed.js,tianhengzhou/typed.js,mywaystar/typed.js,mattboldt/typed.js,mattboldt/typed.js,WuYaoWang/typed.js,taylorfxnharris/typed.js,Wulfcastle/typed.js,finetype/typed.js,kkcoms/typed,hankim813/typed.js,emoreno619/typed.js,Victorgichohi/typed.js,erozqba/typed.js,WuYaoWang/typed.js,rabbyalone/typed.js,hankim813/typed.js,Wulfcastle/typed.js,rabbyalone/typed.js,nsina/typed.js,Luciekimotho/typed.js,d-salas/typed.js,Victorgichohi/typed.js,erozqba/typed.js,Bilyachenko/typed.js,benwtnb/test,Luciekimotho/typed.js,benwtnb/test