realigned js to resolve syntax on deploy