Cleaned up some uncalled javascript functions.