No it's not possible to specify the login redirect through the JS. The way FBC/TC function will change significantly with next release (for the better) making such a feature impossible. As is it's probable, but not practical; you're welcome to edit source and implement however.