Code with javascript alert