An observation:

There seems to be some inconsistency in the bracketing within the JS code. A mixture of Allman and BSD KNF styles - https://github.com/ushahidi/Lamu/pull/92/files#L6L18

Streamlining the coding style for the JavaScript code could be useful and perhaps lint the same.