Moving javascript back to all over the place