Moved js out of wrapper div