cleaned up js probs