fix javascript bug causing exp not correctly displayed