Update magesplit.js

Added curly braces to be consistent with existing code