add check javascript target
clean up Form.* javascript