remove java codes,use js