Implemented a basic version of the OSX dock in JS