separate scoped and unscoped js