added the ability to switch between js sources
glued navigation