AUI-1174 Validate source code with JSHint (source formatting)

Signed-off-by: Henrique Vicente <henriquevicente@gmail.com>