updated some JS examples