home "close" bug was fixed
code was little bit optimized
example JS script was added