Fixed compile errors in LSP javascript.