Allow custom_element attributes

1. Custom javascript element make it more flexible.