rename table and functions
jquery fix