SHAFT viewer / javascript dev