Reorganise javascript includes.