fix javascript call back