Split the main file and javascript, added timer to show differenc