added js

added js functions
changed some css