refactored to only have one version that works with requirejs and without
changed the example a bit
removed unused code and cleaned upt the styling a bit