cleaned up some styles and moved the main javascript to a separate file