added basic js component snippet