javascript improvements, new package