add constants to js