Modified the role js