stop using java script .it's buggy

Change-Id: I24f35af165e28ae90d75b5334a31d9458876fb94