Fixed js variable declarations
10/14 changes