Small fixes for PAC javascript.