Updated syntax based on jshint