[1684] Corrected javascript