Compacted the js for the difficulty charts