replace sun package imports for javascript