fixed bug in gui javascript code causing web app not to open