Oops. Just a tiny typo away.

Put quotes around the x in the code and it works as intended.