How To Get Substring Between Two Characters In Javascript