funcs.js code cleanup
Little bit more code cleanup in funcs.js
Fix wrong indentations
Merge pull request #40 from Fusl/master

funcs.js code cleanup