JS: Sharepoint helpers