Created fixture and added DOM event testing
Tidied up calls to make code more testable, moved app js files to their own folder