move form detection and local time generation into footer and delete unused jsp file