moved arin js into it's own file