Added error pages, added application type js

form cleanup, removed unused files