Autoexecution of javascript based on data-tags