bulid tool change from php script to modjs