added custom intent for js and html