Fixed js script error in button initScript