Refactoring JS paths out so it's easier to include libraries in test code.