adding extend js