Izomorphic javascript application