Move more traversing functions into traversing.js
Remove custom implementation for ECMA5 supported every() and some()