cleaned up code slightly, fixed cross domain issues, and added testling ci badge