Fix duplicate definition and scope in JavaScript

Fix code that makes JSHint issue duplicate definition
and use out of scope warnings.

Change-Id: I5a112a4bfc46b84ce3deb4e58c548aa6d8b8ae54
Implements: blueprint js-coding-style-checks
Set can_set_mount_point to False by default

Change-Id: I518bfbeee709f5304a1c6b2b9ddcfe9655881a66
Closes-Bug: #1255136
Merge "Set can_set_mount_point to False by default"
Merge "Fix duplicate definition and scope in JavaScript"