some js fix; change callback