moved main script to screenshoter.js