Fix adding of script tags on the client side