function trimLocalPath(filePath) {
                return filePath.indexOf(global.env.PATH_TO_PAGES_DIR) == 0 ? filePath.slice(global.env.PATH_TO_PAGES_DIR.length+1).split('/') : filePath.splice('/')
            }
removes the local folder directory for correct browser linking
@param {string} filePath 
@returns {string}