Check JS loaded or not