Maybe the demo did not work because you forgot a semicolon... I bet you forgot a semicolon