Improved JS in guest post

Improved the JavaSript snippets in the guest post about fadeIn()/fadeOut() functions.