add js sync loading support
remove unused getDefaultInitialState