Fix order of scripts and styles