js to support popup notes