applied changes required by appcelerator code standard