iOS JS: removed additional variable