Custom javascript object I have created