Make javascript paths relative