Javascript add Extension