slight change of varible declaration in appjs