added natrual sorting to a separate js file for error prevention