JS framework bug fixed

bug fixed with JS framework