this should be done only inside the script tag technically