Reformatted code style
Added code to change caret color through css