tried to fix the javascript, failed.