added common js to store global variables

refactored loadingBar to manage the position related to the screen instead of canvas
added hardcoded management of the butterfly just to see how it works