update training app js