updated both js files