Moved jQuery functions into seperate file, started API integration