some edit to js