Custom Fun.js

Edited functions and changed a few things for personal likings.

Credits to original Author .