minor variable name changes, whitespace
updated config references and player variable to be consistent
changed back to component to avoid race conditions, use play instead of loadstart event
bad variable name references