Fixed js for mesage