Changed js dependency order to avoid prototype modification conflict.