style backgrounds, clean/refactor js code