Just some js utility functions you can dip into ;)