js to handle styling :(