Fixing javascript quoting bug