moved js to lib script, added prototype function to canvas for easy coordinates calculation
added lodash, made server side publish points on topics
finished this example for publish and subribe