Add javascript testing for image type and begin to implement Corpse page
minor changes