fix the code of alkmap javascript