Fix js and SmartApp