improving the condition when the less js is included