UP-3836: Reworking javascript to look more correct and function in Respondr

Reworking javascript to look more correct and function in Respondr