fixed jslint warnings.

Signed-off-by: Johny Jose <johny@playlyfe.com>