attempting a js fix