Fixed a javascript error that was prohibiting best_in_place from working