added different declaration style to allow AMD syntax