Simplify JS env check
Simplify JS env check

IATkachenko/gallery,desaintmartin/gallery,IATkachenko/gallery,setnes/galleryplus,imjalpreet/gallery,owncloud/gallery,IATkachenko/gallery,owncloud/galleryplus,owncloud/gallery,interfasys/galleryplus,setnes/gallery,tahaalibra/gallery,setnes/galleryplus,setnes/gallery,imjalpreet/gallery,viraj96/gallery,setnes/galleryplus,setnes/gallery,owncloud/galleryplus,desaintmartin/gallery,tahaalibra/gallery,tahaalibra/gallery,interfasys/galleryplus,viraj96/gallery,viraj96/gallery,desaintmartin/gallery,interfasys/galleryplus,owncloud/galleryplus,owncloud/gallery,imjalpreet/gallery