filter default package main to only js files