js MOD update cleaning code +others fixes