fix some error due to my lack of experiences qith js/jquery...