add darwin, win, linux, etc... platform class to body of navigator