for -> forEach + use path module

Add Style Changes

Add dot to extension

Update lslib.js
Merge pull request #9 from xasos/master

For -> forEach + use path module