fix js error in readme example