working on JS aspects