resuable code to use on websites for job