Update javascript codes in readme