adding JS for ruler controls