Refractored to comply with JS naming conventions

Refractored function and variable names to comply
with JavaScript naming conventions.

Change-Id: I2f37402766cdd0eb6e797ba90baee71fede35736