add javascript feedback on error