better method in JS to retrieve component id in ADF page