form api ajax stops javascript loading
Even with the extraneous jQuery ready function within the behavior, it should still work. I guess it depends on what code resides within the javascript function and if all the jQuery selectors actually exist at that point. I would change two things to make it more "drupal"


Per my earlier comment, remove the jQuery ready function from within the attached behavior function
Attach the form javascript using the Form APIs #attached property. See here for more info.