Updated requirement, refactor script tag final