change getting the current active folder to a function, refactored code
change getting the current active folder to a function, refactored code

simonlovesyou/dirsortjs,simonlovesyou/Simon-Says,simonlovesyou/Simon-Says,simonlovesyou/dirsortjs