Separated javaScripts from html-file
Updated javaScript picturerecordings.js - Declared variables private in functions instead of globally