updated some JS