Added BatchElement

we should extract this js to separate file