separating javascript functions
Removing hide function