fix javascript ( cheks if propertises !== undefined )

Change-Id: I7980eae07ea7ad3a0fcbda94509eb68f55773795