Cleaned up unused javascript