fixed some js weirdness in currentop.js #869