package js fixes