a javascript resource engine