Remove base path from JS