Added 'requires' parameter to registerStyle/registerScript functions to handle dependencies automatically