Update tpp_mode.js