You are missing a }); in the end of the last $(document).ready
Once you correct this it should work
EDIT:
Since you say now that each script tag is in a separate web part I believe the problem itself is not in the scripts. Something else in your page is messing up your code.