JS Structure

Cleaned up the JS structure to allow for easier configuring and removed some overhead in layout calculations.
The problems with the stroll script remain untouched for now.
Added key control binding via keymaster.js