Javascript Function To Escape Quotes