POC for  calling java script function