Javascript Variable In String Literal Is Not Properly Closed