fixed flat-ui inclusion errors and stored js resources locally
split into modules and initialized routing