Updated demo JS to be in a closure.