simpler demo JS