javascript improvements + new package