Flip state reflects DOM

The state of the flip is no reflected from the DOM instead of a
global state.
Typo
UI/Control code moved to main.js

With this commit all code is loaded with require.js
Fix location in Readme