Update javascript to be minimized