Fix up some style issues.
Use slice instead of splice on arguments array.