Moved script into seperate js file, scales aspect ratio on resize