improved avoiding including directories as js src