fix js syntax error in readme example