javascripts for angular and jquery tansition