partial fix for suggested js error