Completion: higher priority for sorting by deprecated
JS backend: tests for KT-6323 KotlinJS library modules
JS backend: fix KT-6323: KotlinJS library modules

#KT-6323 Fixed