refactor js
add color changing effect