fix 500 in js file??