JavaScript scripts for Doolean