require painter parameter
proof of concept - main page
added require.js library
use requirejs
load all dependencies and trigger code with requirejs library