added custom js handling mechanism using resource.config