Ant as prototype and some js adjust