main javascript file reorganized
deleting nonexisting page is tested
CSS values changed to px