silly JS but hey works