Move javascript code to assets, plus keyboard navigation.