restore js to previous arrangement