Change some css element parameters over js and remove constants