fix for local js files having multiple dots