Added convertToRelative and convertToAbsolute functions to js folder