edited hotcold js script