fix bug where a script tag would be executed but shouldn't have been due to data attribute