Using Slice(), Substring(), And Substr() In Javascript