fixing errors in js