changes in js (poll resource)
small fixes