Change script block for variation attributes #5793

block script_tags should be used to define external scripts only.
Code inside this block results in inheritance issues.