hopefully final mod to create js