remove the obsolete JavaScript version

also, rename period.css into common.css and update references