Character/cast pages javascript