Call function, methods or code in elements attributes dynamically