Javascript framework optimized for developing API based applications