add support for JS libraries named with suffix "js"