links to index just look up root rather than index - neater
using requirejs