adding basic widget js