new javascript resource registered