cleaned up componentList js code