whole day and open end javascript handlers
"simplify" js