Sequencing Javascript prep and rjs tasks