broke frontend js out into jquery plugin
further improvements to plugginification. support for options loopable and keyboard.