fixed respond to to work w/ js