Fixed syntax errors in guest js