add medium viewport responsive styles
refactor scatterplot JS