js to enable dynamic map service