Wrap script in jQuery(document).ready() until #1 is fixed.